package com.bjsxt.datastructure.linetable;

/**
 * 单链表的结点
 */

public class Node {

    Object data;//存储的数据
    Node next;//指向下一个结点

    public Node() {

    }

    public Node(Object data) {
        super();
        this.data = data;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public Node getNext() {
        return next;
    }

    public void setNext(Node next) {
        this.next = next;
    }
}
